package com.hzy.fivepalace.common.type;

/**
 * 发送微信公众号消息类型枚举
 */
public enum SendGzyMsgTypeEnums {
    TYPE1(1, "新订单通知","nCIEm89-BGRvY_ojB7l-VmMLqKAVf_ylYkxR8AF7qUo"),
    TYPE2(2, "用户退款通知","vBNNeuMpzHJ_mXIIb0lsISpIehMbZYXkO-2M6ww7JGY"),
    TYPE3(3,"订单售后申请通知","5Zdac9sWXfaDdY2m9MEHUQaEKEF1U0_FfWEWICHid8c"),
    TYPE4(4,"订单状态更新提醒","mPlumNKkCFZDoLoAUEcW-uJAVYjxYR_2pX4RqyR8jEA");
    private int type;

    private String name;

    private  String templateId;


    SendGzyMsgTypeEnums(int type, String name,String templateId) {
        this.type = type;
        this.name = name;
        this.templateId=templateId;
    }

    public static SendGzyMsgTypeEnums getEnum(int type) {
        for (SendGzyMsgTypeEnums statusEnums : SendGzyMsgTypeEnums.values()) {
            if (type == statusEnums.getType()) {
                return statusEnums;
            }
        }
        return null;
    }


    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public String getTemplateId() {
        return templateId;
    }
}
